package cn.jh.common.pay.jdpush;


import cn.jh.common.pay.interfaces.RetCode;

/**
 * @author Yichuan
 * @version 1.0
 */
public class PayBarException extends RuntimeException {

    private final RetCode retCode;

    public PayBarException(RetCode retCode) {
        this.retCode = retCode;
    }

    public PayBarException(RetCode retCode, String message) {
        super(message);
        this.retCode = retCode;
    }

    public final RetCode getRetCode() {
        return retCode;
    }

    public PayBarException(String message) {
        super(message);
        this.retCode = null;
    }
}
